import {
	post,
	get
} from "@/utils/request.js"

export default {
	// 个人主页佣金等数据获取
	memberhome: params => get('member/home', params),
	// 个人主页 头像 昵称修改
	updateMyselfApi: params => post('member/updateMyself', params),
	// 修改密码
	reset: data => post('member/reset', data),
	// 退出登录
	loginOut: data => post('member/loginOut', data),
	// 获取邀请码
	getInviteCode: params => get('member/getInviteCode', params),
	// 注销账户
	cancellation: data => post('member/del', data),
	// 实名认证
	checkrealname: data => post('member/checkrealname', data),
	// 获取实名认证信息
	getrealname: params => get('member/getrealname', params),
	// 获取所有银行列表
	getBank: params => get('bank/getBank', params),
	// 新增和修改银行卡信息，微信支付宝信息接口
	banksave: data => post('bank/save', data),
	// 获取银行卡列表
	banklist: data => post('bank/list', data),
	
	// 提现接口
	withdraw: data => post('withdraw/create', data),
	// 获取提现明细
	withdrawlist: data => post('withdraw/list', data),
	// 获取提现 详情api/withdraw/withdrawDetail
	withdrawDetail: data => get('withdraw/withdrawDetail', data),
	// 我的团队
	myteam: params => get('member/myteam', params),
	// 我的分销订单
	orderdistribution: data => post('order/distribution', data),
	// 购买详情+收益列表
	incomelist: params => get('order/incomelist', params),
	// 我的团队分红
	TeamIncomeList: params => get('member/TeamIncomeList', params),
	// 分销佣金
	IncomeList: params => get('member/IncomeList', params),
	// 分销排行
	commissionRanking: params => get('member/commissionRanking', params),
	
	
	//地址信息
	addressinfo: params => get('address/info', params),
	//地址列表
	addresslist: data => post('address/list', data),
	//删除地址
	deladdress: data => post('address/del', data),
	//保存地址
	addresssave: data => post('address/save', data),
	//产品信息
	productinfo: params => get('product/info', params),
	
	productOrderinfo: params => get('productOrder/info', params),
}